package com.jzo2o.customer.controller.worker;

import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditAddReqDTO;
import com.jzo2o.customer.service.IWorkerCertificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author itcast
 */
@RestController("workerCertificationController")
@RequestMapping("/worker/worker-certification-audit")
@Api(tags = "运营端 - 服务人员认证信息相关接口")
public class WorkerCertificationController {

    @Resource
    private IWorkerCertificationService workerCertificationService;

    @PostMapping
    @ApiOperation("服务人员提交认证申请")
    public void submit(@RequestBody WorkerCertificationAuditAddReqDTO dto) {
        workerCertificationService.submit(dto);
    }
    @GetMapping("/rejectReason")
    @ApiOperation("获取驳回原因")
    public Map getRejectReason() {
        return workerCertificationService.getRejectReason();
    }


}
